package com.shamar.blog.enums;

/**
 * @Author: gengwei
 * @DateTime: 2020/1/8 下午9:53
 * @Description:
 */
public enum WechatDeclareContomsErrCodeEnum {

    PARAMS_EXCEPTION("132011004", "参数错误"),
    CURRENCY_ERROR("132021028", ""),
    MCHID_NOT_SET("MCHID_NOT_SET", "商户号未设置"),
    MCHID_INVALID_LENGTH("MCHID_INVALID_LENGTH", "无效的商户号长度"),
    CUSTOMSCONFIG_NOT_SET("CUSTOMSCONFIG_NOT_SET", "海关配置未设置"),
    FEETYPE_NOT_SET("FEETYPE_NOT_SET", "币种类型未设置"),
    OUTTRADENO_NOT_SET("OUTTRADENO_NOT_SET", "商户订单号未设置"),
    TRANSACTION_ID_NOT_SET("TRANSACTION_ID_NOT_SET", "微信订单号未设置"),
    INVALID_TRANSACTION_ID("INVALID_TRANSACTION_ID", "无效的微信订单号长度"),
    CUSTOMS_NOT_SET("CUSTOMS_NOT_SET", "海关信息未设置"),
    CHCUSTOMSNO_NOT_SET("CHCUSTOMSNO_NOT_SET", "海关备案号未设置"),
    INVALID_MCHCUSTOMSNO("INVALID_MCHCUSTOMSNO", "无效的海关备案号长度"),
    PAYFEE_NOT_MATCH("PAYFEE_NOT_MATCH", "金额不匹配"),
    INVALID_SUBORDER_NO("INVALID_SUBORDER_NO", "无效的子单号长度"),
    APPID_NOT_EXIST("APPID_NOT_EXIST", "appid未设置"),
    MCHID_NOT_EXIST("MCHID_NOT_EXIST", "商户号未设置"),
    AUTHORITY_NOT_FOUND("AUTHORITY_NOT_FOUND", "未开通自助清关功能"),
    NO_AUTH("NO_AUTH", "无权限"),
    ;

    private String code;

    private String msg;

    WechatDeclareContomsErrCodeEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}